package common;

public class Def{
	// power
	public static final double POWER_IDLE_WATT = 6.0;
	public static final double POWER_HALF_WATT = 12.0;
	public static final double POWER_MAX_WATT = 24.5;
	
	// clock
	public static final int ALLOWANCE = 5;
	
	// message headers
	// communication (0x00~)
	public static final int NAK = 0x00;
	public static final int ACK = 0x01;
	
	public static final int MSG = 0x11;	// simple message (carries a string)
	public static final int REQUEST = 0x20;
	public static final int RESULT = 0x21;
	
	public static final int TERMINATE = 0x99;	// simple message (carries a string)

	
	// general purposes
	public static final int NOT_ASSIGNED = -0x01;
//	public static final int JUNK = -0x01;
	
	// infrastructure related
	public static final int BROADCAST = 0x00;
	public static final long ROUTER_IP = 3232235521L;	// always 192.168.0.1 == 3232235521L;
	public static final int SIMULATOR = -0x99;
	
	public static final byte STDOUT = 0x01;
	public static final byte STDERR = 0x02;
}
